function ret = mixPatterns(m)
	r = rows(m);
	ret = [];
	d = rows(m);
	for i = 1:d
		index = mod(round(rand * 100), r) + 1;
		ret = [ret; m([index], :)];
		m([index], :) = m([r], :);
		r = r - 1;
		
	endfor

endfunction